package com.njwb.day10.Dvd;

import java.io.Serializable;

public class Dvds implements Serializable {

    private String dvdName; //名字
    private String lendDate; //借出日期
    private int status ;//借出状态
    private int count;//借出次数

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Dvds(String dvdName, String lendDate, int status, int count) {
        this.dvdName = dvdName;
        this.lendDate = lendDate;
        this.status = status;
        this.count = count;
    }

    public String getDvdName() {
        return dvdName;
    }

    public void setDvdName(String dvdName) {
        this.dvdName = dvdName;
    }

    public String getLendDate() {
        return lendDate;
    }

    public void setLendDate(String lendDate) {
        this.lendDate = lendDate;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
    @Override
    public String toString() {
        String statusText = status == 1 ? "未借出" : (status == 2 ? "已借出" : "未知状态");
        return "Dvd名字：" + dvdName +
                ", 借出日期：" + (lendDate == null ? "无" : lendDate) +
                ", 借出状态：" + statusText +
                ", 借出次数：" + count;
    }



}
